<%--
  Created by IntelliJ IDEA.
  User: wkk
  Date: 2022/5/6
  Time: 15:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script src="${pageContext.request.contextPath}/js/jquery-3.4.1.min.js"></script>
<html>
<head>
    <title>Title</title>
</head>
<body>
<button id="showAll" type="button">查询全部</button>

<script>
    $(function () {
        $("#showAll").click(function () {
            $.ajax({
                url: "http://localhost:9090/users",
                type: "get",
                contentType: "application/json",
                success: function (res) {
                    console.log(res)
                }
            });
        });
    });
</script>
</body>
</html>
